var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define(["require", "exports", "petite-vue", "./Calc"], factory);
    }
})(function (require, exports) {
    "use strict";
    exports.__esModule = true;
    var petite_vue_1 = require("petite-vue");
    var Calc_1 = __importDefault(require("./Calc"));
    window.store = petite_vue_1.reactive({
        discount: 50
    });
    var effects = {
        'sum, input': function (sum, input) {
            document.querySelector('#out-of-petite-vue i').textContent = sum;
            document.querySelector('#out-of-petite-vue span').textContent = input;
        }
    };
    petite_vue_1.createApp({
        Calc: Calc_1["default"](window.store, effects)
    }).mount('body');
});
